package huixue.cn.com.rxapp.kchart.ui;

import butterknife.BindView;
import huixue.cn.com.rxapp.R;
import huixue.cn.com.rxapp.base.BaseActivity;
import huixue.cn.com.rxapp.kchart.KChartView;
import huixue.cn.com.rxapp.kchart.adapter.KChartAdapter;
import huixue.cn.com.rxapp.kchart.presenter.KChartPresenter;

public class KChartActivity
        extends BaseActivity<KChartPresenter,KChartPresenter.KChartUI>
        implements KChartPresenter.KChartUI {

    @BindView(R.id.kline_view)
    KChartView kChartView;

    private KChartAdapter kChartAdapter;

    @Override
    protected KChartPresenter createPresenter() {
        return new KChartPresenter();
    }

    @Override
    protected KChartPresenter.KChartUI getUI() {
        return this;
    }

    @Override
    public int getLayout() {
        return R.layout.activity_kchart;
    }

    @Override
    public void initView() {
        kChartAdapter = new KChartAdapter();
        //kChartView.setAdap
    }

    @Override
    public void addEvent() {
        getPresenter().loadNetWorkData("BTMX-USDT","15",1563228649729L,1563876649729L);
    }

}
